﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/BlogAdmin.Master" AutoEventWireup="true" CodeBehind="PostList.aspx.cs" Inherits="Press.MVC.Web.Views.BlogAdmin.PostList" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
 
 Post Listing page
 <br />
 
  <%using (Html.Form("BlogAdmin", "PostDelete", FormMethod.Post))
   {%>
   
   <%= Html.SubmitButton("deletepost","Delete")%>
    <br /> <br />
 <%foreach (Press.MVC.Data.Post p in ViewData.Model.Blog.Posts) { %>
      <%=Html.RenderAppControl("BlogAdmin/PostListing.ascx",p)%>
   <%} %> 
   
       
    
<%}%>
 
</asp:Content>